<template>
    <div>
        <div>我是Child</div>
        <button @click="handle">点击+1</button>
        <button @click="off">解绑</button>
    </div>
</template>

<script>
export default {
    name: "Child",
    methods: {
        handle() {
            this.$emit("countPlus", 2)
        },
        off() {
            this.$off("countPlus")
        }
    }
};
</script>

<style></style>
